package com.laogao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@Data
@TableName("t_question")
public class Question {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    private String id;
    private String examId;
    private String content;
    private Integer type;
    private BigDecimal score;
    private Date createdAt;
    private Date updatedAt;
    @TableField(exist = false) // 关键：标记该字段不直接映射数据库列
    private List<SelectOptions> selectOptionsList;
}